package br.ufrgs.dbproject.idgenerator.dewey;

import br.ufrgs.dbproject.Context;
import br.ufrgs.dbproject.idgenerator.IDGeneratorStrategy;

public class RootIDGenerator implements IDGeneratorStrategy<DeweyID> {

	public boolean canHandle(Context<DeweyID> context) {
		return context.isEmpty();
	}

	public DeweyID generate(Context<DeweyID> context) {
		return DeweyID.createRootID();
	}
	
}
